package com.ddpyjqtd.proxy.staticproxy;

import com.ddpyjqtd.proxy.I58tc;
import com.ddpyjqtd.proxy.TongcImpl;

/**
 * @Description: 静态代理类
 * 
 * @author: ddpyjqtd
 * @Date: 2019年3月11日
 *
 */
public class StaticProxy implements I58tc {

	private TongcImpl tongcImpl;

	public StaticProxy(TongcImpl tongcImpl) {
		this.tongcImpl = tongcImpl;
	}

	@Override
	public void buyHouse() {
		System.out.println("提出你的需求");
		tongcImpl.buyHouse();
		System.out.println("开始搜索，，，，请等待，会有客户联系您。。。");
	}

}
